//
//  VCOfSecond.m
//  UI23_03_利用 NSNotificationCenter 实现页面间传值.
//
//  Created by 李劲成 on 16/4/11.
//  Copyright © 2016年 ljc. All rights reserved.
//

#import "VCOfSecond.h"

@interface VCOfSecond ()

@property (weak, nonatomic) IBOutlet UIButton *send;

@property (weak, nonatomic) IBOutlet UITextField *text;

@end

@implementation VCOfSecond


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)handlePostNi:(id)sender {
    
    // content 传值
    [[NSNotificationCenter defaultCenter]postNotificationName:@"changeTitle" object:nil userInfo:@{@"content":self.text.text }];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
